<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
    <url>
        <loc>http://{$record->grande_ville_mots_cles}.auto-occasion.fr/voiture-occasion/ville-{$record->grande_ville_mots_cles}-1.html</loc>
        <priority>0.5</priority>
        <changefreq>weekly</changefreq>
    </url>
   {foreach $res as $ville}
    <url>
        <loc>http://{$ville}.auto-occasion.fr/voiture-occasion/ville-{$ville}-1.html</loc>
        <priority>0.5</priority>
        <changefreq>weekly</changefreq>
    </url>
   {/foreach}

   {foreach $marques as $item}
    <url>
        <loc>http://{$item->marque_libelle}.{$record->grande_ville_mots_cles}.auto-occasion.fr/voiture-occasion/marque-{$item->marque_libelle}-ville-{$record->grande_ville_mots_cles}-1.html</loc>
        <priority>0.5</priority>
        <changefreq>weekly</changefreq>
    </url>
       {foreach $res as $ville}
        <url>
            <loc>http://{$item->marque_libelle}.{$ville}.auto-occasion.fr/voiture-occasion/marque-{$item->marque_libelle}-ville-{$ville}-1.html</loc>
            <priority>0.5</priority>
            <changefreq>weekly</changefreq>
        </url>
       {/foreach}
   {/foreach}

</urlset>